package hu.szyrt.bug.models;

public class Category {

	private int id;
	private String name;
	private String description;
	private String imageName;
	private String subcategoryIDs;
	private String type;

	public Category(int id, String name, String description, 
			String imageName, String subcategoryIDs, String type) {
		this.id = id;
		this.name = name;
		this.description = description;
		this.imageName = imageName;
		this.subcategoryIDs = subcategoryIDs;
		this.type = type;
	}

	public boolean hasSubCategroy() {
		return subcategoryIDs != null && subcategoryIDs.trim().length() > 0;
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public String getImageName() {
		return imageName;
	}

	public String getSubcategoryIDs() {
		return subcategoryIDs;
	}

	public String getType() {
		return type;
	}

}
